package tcp

import (
	"fmt"
	"log"
	"net/http"
	"strconv"
)

func StartHttpPingServer(port int) {

	http.HandleFunc("/ping", handle)
	log.Fatal(http.ListenAndServe("localhost:"+strconv.Itoa(port), nil))
}

func handle(w http.ResponseWriter, r *http.Request) {

	fmt.Fprintf(w, "pang")
}
